﻿<UserControl x:Class="SlPdf.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
	mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400">
	<toolkit:BusyIndicator 
		 BusyContent="Please wait..." 
		 DisplayAfter="00:00:00"        
		 VerticalContentAlignment="Stretch"
		 HorizontalContentAlignment="Stretch"
		 Name="busyIndicator1">
		<Grid x:Name="LayoutRoot">
			<Grid.Background>
				<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
					<GradientStop Color="Silver" Offset="0.98" />
					<GradientStop Color="Silver" Offset="0" />
					<GradientStop Color="White" Offset="0.54" />
				</LinearGradientBrush>
			</Grid.Background>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition Height="*" />
			</Grid.RowDefinitions>
			<Button Grid.Row="0" 
					Content="Create PDF Rpt" 
					Margin="10"
					x:Name="btnShowPdf" 
					Click="btnShowPdfClick" />
			<Grid x:Name="pdfHost" 
				  Grid.Row="1"
				  HorizontalAlignment="Stretch" 
				  VerticalAlignment="Stretch" 
				  Margin="10" 
				  Background="White"               
				  SizeChanged="pdfHostSizeChanged">
			</Grid>
		</Grid>
	</toolkit:BusyIndicator>
</UserControl>
